package com.hpeu_01.day0118;

import java.util.TreeSet;

public class TreeSetDemo {
    public static void main(String[] args) {
        TreeSet treeSet = new TreeSet();
        treeSet.add(1);
        treeSet.add(5);
        treeSet.add(3);
        treeSet.add(4);
        treeSet.add(2);
        treeSet.add(2);
        System.out.println(treeSet.toString());
    }
}
